# -*- coding: utf-8 -*-

# author: Gabriel Mickel 
# email: g3mickel@gmail.com

import scrapy
from scrapy import Item, Field


class JingdongReview(Item):
	reviewID = Field()
	productID = Field()
	useful = Field()
	star = Field()
	customer = Field()
	customerLink = Field()
	date = Field()
	content = Field()
	tags = Field()

'''class JingdongUser(Item):
	jingdongID = Field()
	nickname = Field()
	levelID = Field()
	products = Field()
	province = Field()'''

class JingdongProduct(Item):
	productID = Field() # 唯一标示符
	name = Field()
	category = Field()
	brandName = Field()
	brandID = Field()
	website = Field()
#	product_features = Field()
	update_date = Field()
	price = Field()
	avg_rating = Field()	
	num_reviews = Field()
	sale_rank = Field()
	last_crawled_date = Field()

class JingdongProductUpdate(Item):
	productID = Field()
	avg_rating = Field()
	num_reviews = Field()
	last_crawled_date = Field()
	sale_rank = Field()